package units;

import game.Costs;
import game.Technology;

public class Catapult extends AbstractUnit {
	//*******************************************
	private static final int _healthpoints = 200;
	private static final int _attackMultiple = 3;
	private static final int _attack = 150;
	private static final int _defense = 2;
	private static final int _attackquality = 40;
	private static final int[] _attackRounds = {2,3,4,5,6};
	private static Costs costSetting = null;	
	private static final int _buildPoints = 300;	
	//*******************************************

	Catapult() {
		super(_healthpoints, _attack, _defense, _attackquality, _attackMultiple, _attackRounds, _buildPoints);
		if (costSetting == null){
			costSetting = new Costs();
			costSetting.setLumberCost(200);
			costSetting.setIronCost(100);
			costSetting.setGoldCost(40);
			costSetting.setStoneCost(50);
			}
		this.setCosts(costSetting);
	}

	@Override
	int getAttackBonus() {
		return Technology.getCatapultAttackBonus();
	}

	@Override
	int getDefenseBonus() {
		return Technology.getCatapultDefenseBonus();
	}

	@Override
	int getAttackqualityBonus() {
		return Technology.getCatapultAttackqualityBonus();
	}

	@Override
	int getHealthpointsBonus() {
		return Technology.getCatapultHealthpointsBonus();
	}
}
